<template>
	<view class="container">
		<view class="top">
			<u-icon name="arrow-left" color="#fff" size="30" @click="returnbtn"></u-icon>
			<u--text text="待使用订单" align="center" color="#fff" size="22" margin="4vh 0 0 0"></u--text>
		</view>
		<view class="bgtop"></view>

		<view class="card">
			<u--text text="核销码:WE343235V" align="center" size="18"></u--text>
			<!-- 			<u--image :showLoading="true" :src="src" width="80px" height="80px" @click="click"></u--image> -->
			<view class="imagetp">
				<image src="../../../../static/images/wpc/tp.png" class="erweima"></image>
			</view>
		</view>

		<view class="card">
			<view class="head1">
				<u--text text="订单信息"></u--text>
				<u--text text="待使用" align="right" color="red"></u--text>
			</view>
			<view class="hr"></view>
			<view class="orderinfo">
				<u--text text="订单号: 1212121212122121" margin='10rpx' size='14px'></u--text>
				<u--text text="服务项目: 车辆保养" margin='10rpx' size='14px'></u--text>
				<view class="orderinfo1">
					<u--text text="服务门店: 大宝车辆维修店" suffixIcon="pushpin-fill" margin="10rpx" size='14px'></u--text>
				</view>
				<u--text text="下单时间: 2023-03-12 12:09" margin='10rpx' size='14px'></u--text>
				<u--text text="预约事件: 2023-03-12 12:09" margin='10rpx' size='14px'></u--text>
				<u--text text="车辆: 奔驰FWE4/豫A98FHJ" margin='10rpx' size='14px'></u--text>
				<u--text text="备注:" margin='10rpx' size='14px'></u--text>
			</view>
		</view>


		<view class="card">
			<view class="head1">
				<u--text text="订单详情"></u--text>
				<!-- <u--text text="待支付" align="right" color="red"></u--text> -->
			</view>
			<view class="hr"></view>
			<view class="orderinfo">
				<view class="orderinfo1">
					<u--text text="车辆精洗" margin="10rpx" size='14px'></u--text>
					<u--text text="￥39.90" margin='10rpx' size='14px' align="right"></u--text>
				</view>
				<view class="orderinfo1">
					<u--text text="车辆附加费用" margin="10rpx" size='14px'></u--text>
					<u--text text="0" margin='10rpx' size='14px' align="right"></u--text>
				</view>
				<view class="hr"></view>
				<view class="orderinfo1">
					<u--text text="原价" margin="10rpx" size='14px'></u--text>
					<u--text text="￥59.90" margin='10rpx' size='14px' align="right"></u--text>
				</view>
				<view class="orderinfo1">
					<u--text text="店家优惠" margin="10rpx" size='14px'></u--text>
					<u--text text="-￥20" margin='10rpx' size='14px' align="right" color="red"></u--text>
				</view>
				<view class="orderinfo1">
					<u--text text="优惠卷" margin="10rpx" size='14px'></u--text>
					<u--text text="-￥10" margin='10rpx' size='14px' align="right" color="red"></u--text>
				</view>
				<view class="hr"></view>
				<view class="orderinfo1">
					<u--text text="支付金额" margin="10rpx" size='14px'></u--text>
					<u--text text="￥29.90" margin='10rpx' size='18px' align="right" color="#38c151"></u--text>
				</view>
			</view>
		</view>

		<!-- 底部固定联系客服 -->
		<view class="bottembar">
			<u--text prefixIcon="server-man" :iconStyle="iconstyle" text="联系客服" margin="10rpx" size='15px'></u--text>
			<u-button size="small" shape="circle" :customStyle='btnys1'>申请退款</u-button>
			<!-- 			<u-button type="primary" size="small" shape="circle" :customStyle='btnys'>立即支付</u-button> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// src: '/static/images/wpc/tp.png',
				"iconstyle": {
					"color": "blue",
					"width": "30px",
					"height": "30px",
					"fontSize": "30px",
				},
				btnys: {
					'background-color': ' #0863e7',
					'margin-left': '20rpx',
					'height': '70rpx',
					'width': '200rpx'
				},
				btnys1: {
					'background-color': ' #bfbfbf',
					'margin-left': '20rpx',
					'width': '200rpx',
					'height': '70rpx',
					'color': '#fff'
				},
			}
		},
		methods: {
			returnbtn() {
				uni.$u.route('/pages/wpc/myorder/myorder');
			}
		}
	}
</script>

<style lang="scss">
	.bgtop {
		width: 100vw;
		background-color: #3183fc;
		height: 400rpx;
		overflow: auto;
	}

	.top {
		z-index: 3;
		width: 100vw;
		background-color: #3183fc;
		height: 150rpx;
		overflow: auto;
		position: fixed;
		top: 0;
		left: 0;

		.u-icon {
			position: fixed;
			top: 4vh;
		}
	}

	.card {
		width: 95%;
		box-sizing: border-box;
		// height: 450rpx;
		bottom: 250rpx;
		margin: 10px auto;
		position: relative;
		border-radius: 20rpx;
		background-color: #fff;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
		padding: 30rpx 25rpx;

		.head1 {
			display: flex;
			justify-content: space-between;
			align-items: center;
		}


	}

	.hr {
		margin-top: 30rpx;
		border: 2px solid #f3f3f3;
		border-radius: 2px;
	}

	.orderinfo1 {
		display: flex;

	}

	.bottembar {
		background-color: #fff;
		position: fixed;
		width: 100%;
		height: 100rpx;
		bottom: 0;
		display: flex;
		align-items: center;
	}

	.imagetp {
		display: flex;
		/* 添加Flexbox布局 */
		flex-direction: column;
		/* 设置主轴方向为垂直 */
		align-items: center;
		/* 水平居中 */
		justify-content: center;
		/* 垂直居中 */
	}

	.erweima {
		margin-top: 20rpx;
		width: 160rpx;
		height: 160rpx;
	}
</style>